<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>25_逗号运算符</title>
    </head>
    <body>
        <script>
            // var a = 1, b = 2, c = 3;

            // console.log(a,b,c);

            // 相当于 
            // var a = 1;
            // var b = 2;
            // var c =3;

            // 
            var a = (2,3);
            console.log(a);



            // var b = 2;
            // var c = 3;
            // var a = (b,c);

            var a = (b = 2, c = 3);
            console.log(a);
        </script>
    </body>
</html>